# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-term-animation
pkgver=2.6
pkgrel=9
pkgdesc="Perl/CPAN Module Term::Animation"
arch=("any")
url="https://search.cpan.org/dist/Term-Animation"
license=("GPL" "PerlArtistic")
depends=("perl-curses")
source=("https://www.cpan.org/authors/id/K/KB/KBAUCOM/Term-Animation-$pkgver.tar.gz")
sha256sums=('7d5c3c2d4f9b657a8b1dce7f5e2cbbe02ada2e97c72f3a0304bf3c99d084b045')

build() {
  cd "$srcdir"/Term-Animation-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Term-Animation-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
